<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

use App\Engine\BaseModel;
use Illuminate\Database\Eloquent\Model;

/**
 * Class ChickenRank
 *
 * @property int $id
 * @property string|null $name
 * @property int $egg_time
 * @property int $experience
 *
 * @package App\Models
 */
class ChickenRank extends BaseModel
{
	protected $table = 'chicken_ranks';
	public $timestamps = false;

	protected $casts = [
		'egg_time' => 'int',
		'experience' => 'int'
	];

	protected $fillable = [
		'name',
		'egg_time',
		'experience'
	];

    public $rule=[
        'name'=>'required',
        'egg_time'=>'required',
        'experience'=>'required',


    ];
    public $ruleMessage=[
        'name.required'=>"请输入姓名",
        'egg_time.required'=>"请填写下蛋时间间隔",
        'experience.required'=>"请填写成长所需经验",
    ];
}
